package com.dc.common.core;

import com.dc.common.validated.QueryPageGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhuangcy
 * @date 2021/1/16
 * @description 分页基础参数Dto类
 */
@Data
public class PageParamDto extends BaseParamDto {

    @NotNull(message = "页码不能为空", groups = {QueryPageGroup.class})
    @ApiModelProperty(value = "页码", example = "1")
    private Integer pageNum;

    @NotNull(message = "页数不能为空", groups = {QueryPageGroup.class})
    @ApiModelProperty(value = "每页数量", example = "10")
    private Integer pageSize;

}
